<?php 
/* SVN FILE: $Id$ */
/* CompanyIndustry Test cases generated on: 2009-11-08 14:34:50 : 1257690890*/
App::import('Model', 'CompanyIndustry');

class CompanyIndustryTestCase extends CakeTestCase {
	var $CompanyIndustry = null;
	var $fixtures = array('app.company_industry', 'app.company');

	function startTest() {
		$this->CompanyIndustry =& ClassRegistry::init('CompanyIndustry');
	}

	function testCompanyIndustryInstance() {
		$this->assertTrue(is_a($this->CompanyIndustry, 'CompanyIndustry'));
	}

	function testCompanyIndustryFind() {
		$this->CompanyIndustry->recursive = -1;
		$results = $this->CompanyIndustry->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('CompanyIndustry' => array(
			'id'  => 1,
			'name'  => 'Lorem ipsum dolor sit amet'
		));
		$this->assertEqual($results, $expected);
	}
}
?>